gtk4.git
3 years agogtkmodelbutton: Avoid gtk_gesture_set_sequence_state()
Carlos Garnacho [Thu, 2 Feb 2023 10:57:06 +0000 (11:57 +0100)]
gtkmodelbutton: Avoid gtk_gesture_set_sequence_state()

It is not necessary for this widget to know about the specific
sequence that is interacting.

3 years agogtktextview: Avoid gtk_gesture_set_sequence_state()
Carlos Garnacho [Thu, 2 Feb 2023 10:54:36 +0000 (11:54 +0100)]
gtktextview: Avoid gtk_gesture_set_sequence_state()

Use gtk_gesture_set_state() as this widget does not need specific
knowledge on the sequence being used for interaction.

3 years agogtkscrolledwindow: Clean up input handling a bit
Carlos Garnacho [Thu, 2 Feb 2023 10:15:24 +0000 (11:15 +0100)]
gtkscrolledwindow: Clean up input handling a bit

These pieces were added in commit 8d2f81cca4, but are no longer
necessary since there's no capture_button_press special behavior
toggle.

This can be simplified again.

3 years agogtkwindowhandle: Refactor click handling a bit
Carlos Garnacho [Thu, 2 Feb 2023 09:51:08 +0000 (10:51 +0100)]
gtkwindowhandle: Refactor click handling a bit

Do not get a GdkEvent first and foremost, and only do that in the
parts where the GdkEvent is absolutely necessary (i.e. popping up
the WM menu for the window).

3 years agogtkgesture: Deprecate gtk_gesture_set_sequence_state()
Carlos Garnacho [Thu, 2 Feb 2023 09:36:06 +0000 (10:36 +0100)]
gtkgesture: Deprecate gtk_gesture_set_sequence_state()

We can abstract widgets about the specific ongoing sequences that
are triggering a GtkGesture. This used to be more necessary in
GTK3 world where complex widgets might have required handling
different events in different areas, but in GTK4 world that would
be done with multiple widgets.

This is no longer necessary to carry forward.

3 years agogtkscrolledwindow: Avoid gtk_gesture_set_sequence_state()
Carlos Garnacho [Thu, 2 Feb 2023 09:35:15 +0000 (10:35 +0100)]
gtkscrolledwindow: Avoid gtk_gesture_set_sequence_state()

This widget does not require special knowledge about the ongoing
event sequences, just make it use gtk_gesture_set_state() generically.

3 years agogtkwindowhandle: Avoid gtk_gesture_set_sequence_state()
Carlos Garnacho [Thu, 2 Feb 2023 09:32:56 +0000 (10:32 +0100)]
gtkwindowhandle: Avoid gtk_gesture_set_sequence_state()

It does not require special knowledge about the ongoing event
sequences, and it can instead trust the event controller. Make
it use gtk_gesture_set_state() generically.

3 years agoMerge branch 'small-gltexture-cleanup' into 'main'
Matthias Clasen [Thu, 2 Feb 2023 09:16:09 +0000 (09:16 +0000)]
Merge branch 'small-gltexture-cleanup' into 'main'

gltexture: Small refactoring

See merge request GNOME/gtk!5464

3 years agogltexture: Small refactoring
Matthias Clasen [Mon, 30 Jan 2023 13:24:02 +0000 (08:24 -0500)]
gltexture: Small refactoring

We do this in two places, so factor out
the dropping of GL resources into a helper.

3 years agoci: Stop running the asan build every time
Matthias Clasen [Thu, 2 Feb 2023 08:07:10 +0000 (09:07 +0100)]
ci: Stop running the asan build every time

It fails because of address sanitizer crashes,
and takes a long time. It is not that useful
in this shape.

3 years agoUpdate po/POTFILES.in
Matthias Clasen [Thu, 2 Feb 2023 08:05:31 +0000 (09:05 +0100)]
Update po/POTFILES.in

Deprecations affect this file.

3 years agoFix a deprecation warning
Matthias Clasen [Thu, 2 Feb 2023 08:03:26 +0000 (09:03 +0100)]
Fix a deprecation warning

3 years agomain: Compiler warnin gfixes
Matthias Clasen [Thu, 2 Feb 2023 07:44:53 +0000 (08:44 +0100)]
main: Compiler warnin gfixes

3 years agoicontheme: Compiler warning fixes
Matthias Clasen [Thu, 2 Feb 2023 07:44:28 +0000 (08:44 +0100)]
icontheme: Compiler warning fixes

3 years agoDeprecate GtkAssistant
Matthias Clasen [Thu, 2 Feb 2023 07:28:13 +0000 (08:28 +0100)]
Deprecate GtkAssistant

It is a dialog-like toplevel, and libadwaita has
replacement parts (like AdwCarousel).

3 years agoDeprecate GtkLockButton
Matthias Clasen [Wed, 1 Feb 2023 17:18:28 +0000 (18:18 +0100)]
Deprecate GtkLockButton

This is a very specialized widget, and should really just
live with the applications where it is used.

3 years agoDeprecate GtkStatusbar
Matthias Clasen [Wed, 1 Feb 2023 17:03:59 +0000 (18:03 +0100)]
Deprecate GtkStatusbar

The design patterns using statusbar are no longer popular,
and it is pretty easy to make a statusbar yourself with boxes
and labels, if you need one. The only thing special about
GtkStatusbar was its window resize handle, but that has
been gone for a long time.

3 years agoDeprecate more startup-notification API
Matthias Clasen [Wed, 1 Feb 2023 16:58:43 +0000 (17:58 +0100)]
Deprecate more startup-notification API

3 years agoUpdate Galician translation
Fran Dieguez [Wed, 1 Feb 2023 19:12:29 +0000 (19:12 +0000)]
Update Galician translation

3 years agoMerge branch 'fix-gltexture-confusion' into 'main'
Benjamin Otte [Wed, 1 Feb 2023 18:47:28 +0000 (18:47 +0000)]
Merge branch 'fix-gltexture-confusion' into 'main'

gltexture: Use the right context

See merge request GNOME/gtk!5461

3 years agoCosmetics
Matthias Clasen [Wed, 1 Feb 2023 17:38:22 +0000 (18:38 +0100)]
Cosmetics

3 years agoUpdate Spanish translation
Daniel Mustieles [Wed, 1 Feb 2023 15:28:00 +0000 (15:28 +0000)]
Update Spanish translation

3 years agogltexture: Use the right context
Matthias Clasen [Tue, 31 Jan 2023 12:23:59 +0000 (07:23 -0500)]
gltexture: Use the right context

When checking characteristics of the context
for downloading, we were using self->context,
even though we are using a possibly different
context for downloading.

Pass the right context along and use it.

3 years agoUpdate Indonesian translation
Kukuh Syafaat [Wed, 1 Feb 2023 03:14:46 +0000 (03:14 +0000)]
Update Indonesian translation

3 years agoMerge branch 'fix-gst-sync' into 'main'
Matthias Clasen [Tue, 31 Jan 2023 12:28:27 +0000 (12:28 +0000)]
Merge branch 'fix-gst-sync' into 'main'

gst: Fix synchronization

See merge request GNOME/gtk!5459

3 years agogst: Rename a field for clarity
Matthias Clasen [Mon, 30 Jan 2023 20:00:53 +0000 (15:00 -0500)]
gst: Rename a field for clarity

gst_gdk_context is clearer than gst_app_context. Maybe

3 years agoMerge branch 'file-chooser-dnd-crash' into 'main'
Matthias Clasen [Mon, 30 Jan 2023 19:28:24 +0000 (19:28 +0000)]
Merge branch 'file-chooser-dnd-crash' into 'main'

filechooserwidget: Fix file chooser crash when dropping empty file list

See merge request GNOME/gtk!5456

3 years agofilechooserwidget: Fix file chooser crash when dropping empty file list
Fina Wilke [Mon, 30 Jan 2023 19:28:24 +0000 (19:28 +0000)]
filechooserwidget: Fix file chooser crash when dropping empty file list

3 years agogst: Fix synchronization
Matthias Clasen [Mon, 30 Jan 2023 16:56:50 +0000 (11:56 -0500)]
gst: Fix synchronization

It does not make sense to sync and wait in the
same context, that is just a no-op. The intention
of this code clearly was to sync in the gst
context, and wait in the gdk one.

That also matches what the gtk sink implementation
in gstreamer does.

3 years agoMerge branch 'password-entry-unrealize' into 'main'
Matthias Clasen [Mon, 30 Jan 2023 12:29:33 +0000 (12:29 +0000)]
Merge branch 'password-entry-unrealize' into 'main'

passwordentry: Fix an asymmetry

Closes #5285

See merge request GNOME/gtk!5457

3 years agopasswordentry: Fix an asymmetry
Matthias Clasen [Mon, 30 Jan 2023 03:37:51 +0000 (22:37 -0500)]
passwordentry: Fix an asymmetry

When connecting a signal in realize,
we should disconnect in unrealize.

Fixes: #5285
3 years agogsk: Quiet a compiler warning
Matthias Clasen [Sun, 29 Jan 2023 02:13:10 +0000 (21:13 -0500)]
gsk: Quiet a compiler warning

3 years agoUpdate German translation
Jürgen Benvenuti [Sat, 28 Jan 2023 19:59:19 +0000 (19:59 +0000)]
Update German translation

3 years agoMerge branch 'tooltip-size-simplification' into 'main'
Benjamin Otte [Sat, 28 Jan 2023 18:26:00 +0000 (18:26 +0000)]
Merge branch 'tooltip-size-simplification' into 'main'

tooltip: Don't play games with max-width-chars

Closes #4470 and #5521

See merge request GNOME/gtk!5455

3 years agotooltip: Prevent too-wide tooltip windows
Matthias Clasen [Sat, 28 Jan 2023 15:32:19 +0000 (10:32 -0500)]
tooltip: Prevent too-wide tooltip windows

Set the label to expand, so it actually fills
the width that we allocated for it, instead
of shrinking back to the minimum width for
its height.

Fixes: #5521
3 years agotooltip: Don't play games with max-width-chars
Matthias Clasen [Sat, 28 Jan 2023 18:04:01 +0000 (13:04 -0500)]
tooltip: Don't play games with max-width-chars

Setting max-width-chars to the number of characters
in the string works ok only as long as the average
char width we get from Pango matches reality. Sadly
that seems not always the case, and this code was
causing short Chinese tooltips to always be broken
into two lines.

Fixes: #4470
3 years agoUpdate POTFILES.in
Piotr Drąg [Sat, 28 Jan 2023 13:05:01 +0000 (14:05 +0100)]
Update POTFILES.in

3 years agoMerge branch 'position-as-double' into 'main'
Matthias Clasen [Sat, 28 Jan 2023 03:24:19 +0000 (03:24 +0000)]
Merge branch 'position-as-double' into 'main'

Boyscouting: fix position type in `gtk_drag_source_drag_begin()`

See merge request GNOME/gtk!5437

3 years agoMerge branch 'work/zzag/activation-token-dbus' into 'main'
Carlos Garnacho [Sat, 28 Jan 2023 00:44:25 +0000 (00:44 +0000)]
Merge branch 'work/zzag/activation-token-dbus' into 'main'

wayland: Fix handling of activation-token in org.freedesktop.Application requests

See merge request GNOME/gtk!5151

3 years agoUpdate Ukrainian translation
Yuri Chornoivan [Fri, 27 Jan 2023 19:23:39 +0000 (19:23 +0000)]
Update Ukrainian translation

3 years agowayland: Fix handling of activation-token in org.freedesktop.Application requests
Vlad Zahorodnii [Thu, 20 Oct 2022 16:33:15 +0000 (19:33 +0300)]
wayland: Fix handling of activation-token in org.freedesktop.Application requests

At the moment, GTK applications search for "desktop-startup-id" in the
platform data on Wayland , but desktop environments such as plasma set
"activation-token" property instead as indicated in the spec:

    activation-token: This should be a string of the same value as would
    be stored in the XDG_ACTIVATION_TOKEN environment variable, as specified
    by the XDG Activation protocol for Wayland.

https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#dbus

3 years agoMerge branch 'wip/carlosg/broadway-fix' into 'main'
Carlos Garnacho [Fri, 27 Jan 2023 19:20:28 +0000 (19:20 +0000)]
Merge branch 'wip/carlosg/broadway-fix' into 'main'

gdk/broadway: Add deprecation guards around gdk_display_put_event()

See merge request GNOME/gtk!5450

3 years agogdk/broadway: Add deprecation guards around gdk_display_put_event()
Carlos Garnacho [Fri, 27 Jan 2023 18:39:53 +0000 (19:39 +0100)]
gdk/broadway: Add deprecation guards around gdk_display_put_event()

This went missing.

3 years agoMerge branch 'fix_5551' into 'main'
Matthias Clasen [Fri, 27 Jan 2023 16:22:17 +0000 (16:22 +0000)]
Merge branch 'fix_5551' into 'main'

object_tree.c: One gtk_list_item_get_child call is redundant

Closes #5551

See merge request GNOME/gtk!5449

3 years agoMerge branch 'wip/sophie-h/scrolled-window-propagate-event' into 'main'
Matthias Clasen [Fri, 27 Jan 2023 14:54:33 +0000 (14:54 +0000)]
Merge branch 'wip/sophie-h/scrolled-window-propagate-event' into 'main'

scrolledWindow: Propagate event for no scrolling

See merge request GNOME/gtk!5447

3 years agoobject_tree.c: One gtk_list_item_get_child call is redundant
Lukáš Tyrychtr [Fri, 27 Jan 2023 14:43:24 +0000 (15:43 +0100)]
object_tree.c: One gtk_list_item_get_child call is redundant

Fixes #5551

3 years agoUpdate Portuguese translation
Hugo Carvalho [Fri, 27 Jan 2023 14:26:32 +0000 (14:26 +0000)]
Update Portuguese translation

3 years agoscrolledWindow: Propagate event for no scrolling
Sophie Herold [Wed, 25 Jan 2023 21:26:07 +0000 (22:26 +0100)]
scrolledWindow: Propagate event for no scrolling

3 years agoMerge branch 'broadway-modal-hint' into 'main'
Matthias Clasen [Thu, 26 Jan 2023 02:44:54 +0000 (02:44 +0000)]
Merge branch 'broadway-modal-hint' into 'main'

[GTK4] gdk/broadway: Implements modal hint for Broadway surface

See merge request GNOME/gtk!4428

3 years agoMerge branch 'fix_5543' into 'main'
Matthias Clasen [Wed, 25 Jan 2023 13:08:07 +0000 (13:08 +0000)]
Merge branch 'fix_5543' into 'main'

GtkCssProvider: fix element type in docs

Closes #5543

See merge request GNOME/gtk!5441

3 years agoActually, the annotation is not needed in this case
Lukáš Tyrychtr [Wed, 25 Jan 2023 10:46:53 +0000 (11:46 +0100)]
Actually, the annotation is not needed in this case

3 years agoUpdate Hebrew translation
Yosef Or Boczko [Wed, 25 Jan 2023 08:15:09 +0000 (08:15 +0000)]
Update Hebrew translation

3 years agoMerge branch 'macos-fix-popups' into 'main'
Matthias Clasen [Tue, 24 Jan 2023 16:37:23 +0000 (16:37 +0000)]
Merge branch 'macos-fix-popups' into 'main'

macos: Fix popup event handling

Closes #5528

See merge request GNOME/gtk!5436

3 years agoMerge branch 'wip/abono/gtk-switch-state-off' into 'main'
Matthias Clasen [Tue, 24 Jan 2023 16:08:57 +0000 (16:08 +0000)]
Merge branch 'wip/abono/gtk-switch-state-off' into 'main'

gtkswitch: Allow to set state FALSE while keeping active TRUE

See merge request GNOME/gtk!5442

3 years agogtkswitch: Decouple set_state with set_active.
Alessandro Bono [Mon, 23 Jan 2023 15:03:45 +0000 (16:03 +0100)]
gtkswitch: Decouple set_state with set_active.

Allow the user to set a state that doesn't reflect the active property.

3 years agomacos: Propagate events for child surfaces
Arjan Molenaar [Mon, 23 Jan 2023 20:45:59 +0000 (21:45 +0100)]
macos: Propagate events for child surfaces

Before, popup windows did not respond to mouse clicks.
This change fixes that.

Fixes #5528.

3 years agoremove unused variable
Maxim Zakharov [Tue, 24 Jan 2023 00:41:27 +0000 (11:41 +1100)]
remove unused variable

3 years agoMerge branch 'macos-native-dnd' into 'main'
Matthias Clasen [Mon, 23 Jan 2023 22:01:30 +0000 (22:01 +0000)]
Merge branch 'macos-native-dnd' into 'main'

macos: DnD Drag support

Closes #3423

See merge request GNOME/gtk!5416

3 years agoUse wording from a suggestion
Emmanuele Bassi [Mon, 23 Jan 2023 11:50:28 +0000 (11:50 +0000)]
Use wording from a suggestion

3 years agoGtkCssProvider: fix element type in docs
Lukáš Tyrychtr [Mon, 23 Jan 2023 09:56:57 +0000 (10:56 +0100)]
GtkCssProvider: fix element type in docs

The method takes an array of char, which actually is UTF-8, so make the docs say so.
Fixes #5543

3 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Sun, 22 Jan 2023 18:36:11 +0000 (18:36 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

iconhelper: Handle GtkSymbolicPaintable

See merge request GNOME/gtk!5440

3 years agoiconhelper: Handle GtkSymbolicPaintable
Matthias Clasen [Sun, 22 Jan 2023 18:17:11 +0000 (13:17 -0500)]
iconhelper: Handle GtkSymbolicPaintable

If we are given a GtkSymbolicPaintable,
treat it as symbolic.

3 years agoUpdate Catalan translation
Jordi Mas [Sat, 21 Jan 2023 15:58:51 +0000 (16:58 +0100)]
Update Catalan translation

3 years agomacos: remove dead code
Arjan Molenaar [Sat, 21 Jan 2023 14:22:13 +0000 (15:22 +0100)]
macos: remove dead code

3 years agomacos: Send dragging events directly to the display
Arjan Molenaar [Sat, 21 Jan 2023 13:54:12 +0000 (14:54 +0100)]
macos: Send dragging events directly to the display

Instead of adding events to the application event queue, dispatch
them directly to the right display. We know this when the event is
to be dispatched.

This is the same as used for the `sendEvent` method in `GdkMacosWindow`.

To achieve this I factored out the generic NSEvent to GdkEvent translation.
We can send an event directly, when we receive it in the GdkMacosWindow
directly from the OS.

3 years agoUpdate Georgian translation
Ekaterine Papava [Fri, 20 Jan 2023 16:04:31 +0000 (16:04 +0000)]
Update Georgian translation

3 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Tue, 17 Jan 2023 21:37:39 +0000 (21:37 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

Cosmetics

See merge request GNOME/gtk!5434

3 years agosettings: Modernize the code
Matthias Clasen [Tue, 17 Jan 2023 20:19:50 +0000 (15:19 -0500)]
settings: Modernize the code

Drop some things that are no longer relevant,
and make this code look like modern GObject code.

3 years agomacos: Update event source doc
Arjan Molenaar [Tue, 17 Jan 2023 15:24:47 +0000 (16:24 +0100)]
macos: Update event source doc

Update the documentation with the interaction pattern we
need to support DnD.

3 years agomacos: align functions in gdkmacosdrag-private.h
Arjan Molenaar [Tue, 17 Jan 2023 15:12:57 +0000 (16:12 +0100)]
macos: align functions in gdkmacosdrag-private.h

3 years agosettings: Drop object_list
Matthias Clasen [Tue, 17 Jan 2023 13:30:37 +0000 (08:30 -0500)]
settings: Drop object_list

This code came from a time when we were installing
additional settings at runtime. We no longer do that,
so this code is unnecessary.

3 years agomodules: Cosmetics
Matthias Clasen [Tue, 17 Jan 2023 12:46:57 +0000 (07:46 -0500)]
modules: Cosmetics

Use g_strv_length, instead of open-coding it.

3 years agostylecascade: Avoid some allocations
Matthias Clasen [Tue, 17 Jan 2023 12:39:51 +0000 (07:39 -0500)]
stylecascade: Avoid some allocations

3 years agomacos: Provide the right drag action
Arjan Molenaar [Mon, 16 Jan 2023 22:15:46 +0000 (23:15 +0100)]
macos: Provide the right drag action

We should use the drag action/operation provided by the
drag handlers, not rely on our internal bookkeeping.

3 years agomacos: Default kCFRunLoopAllActivities
Arjan Molenaar [Mon, 16 Jan 2023 19:28:38 +0000 (20:28 +0100)]
macos: Default kCFRunLoopAllActivities

It's actually a mask, but we'll keep it in to
avoid compiler warnings.

3 years agoMerge branch 'fix-hidpi-pictures' into 'main'
Matthias Clasen [Mon, 16 Jan 2023 14:32:01 +0000 (14:32 +0000)]
Merge branch 'fix-hidpi-pictures' into 'main'

picture: Fix hi-dpi image handling

See merge request GNOME/gtk!5430

3 years agopicture: Fix hi-dpi image handling
Matthias Clasen [Sun, 15 Jan 2023 12:59:27 +0000 (07:59 -0500)]
picture: Fix hi-dpi image handling

The idea behind this code was to let scalable
images (i.e. mainly SVGs) provide twice as much
detail when the scale is 2. But we were also
using a scaler for pngs, causing them to be too
small on a hidpi screen. Fix that.

Note that there are cases where you want scaling
for pngs (when you display them scaled down, so
the image has 'hidden' detail). But we are not
attempting to handle that situation automatically.

3 years agomacos: Queue events during drag
Arjan Molenaar [Mon, 16 Jan 2023 13:47:49 +0000 (14:47 +0100)]
macos: Queue events during drag

By passing the events during a (midal-ish) drag operation to the main loop,
we're able to keep up with what's happening. This allows the internal
drag state (GtkDragSource) to be updated and be done when the drag is
done.

3 years agoUpdate Turkish translation
Emin Tufan Çetin [Sun, 15 Jan 2023 22:47:27 +0000 (22:47 +0000)]
Update Turkish translation

3 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Sun, 15 Jan 2023 18:48:22 +0000 (18:48 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

Use GtkUriLauncher where appropriate

See merge request GNOME/gtk!5432

3 years agoUse GtkUriLauncher where appropriate
Matthias Clasen [Sun, 15 Jan 2023 18:25:34 +0000 (13:25 -0500)]
Use GtkUriLauncher where appropriate

GtkLabel, GtkLinkButton and GtkAboutDialog
all have a uri, not a file, so it makes more
sense to use a GtkUriLauncher.

3 years agoMerge branch 'uri-launcher-demo' into 'main'
Matthias Clasen [Sun, 15 Jan 2023 17:47:18 +0000 (17:47 +0000)]
Merge branch 'uri-launcher-demo' into 'main'

urilauncher: Fix finish function mismatch

See merge request GNOME/gtk!5431

3 years agogtk-demo: Add a uri launcher demo
Matthias Clasen [Sun, 15 Jan 2023 16:58:43 +0000 (11:58 -0500)]
gtk-demo: Add a uri launcher demo

3 years agourilauncher: Fix finish function mismatch
Matthias Clasen [Sun, 15 Jan 2023 16:58:09 +0000 (11:58 -0500)]
urilauncher: Fix finish function mismatch

We need to call the finish function that
matches the async function.

3 years agoMerge branch 'docs-escape-xml-tag' into 'main'
Matthias Clasen [Sun, 15 Jan 2023 15:12:28 +0000 (15:12 +0000)]
Merge branch 'docs-escape-xml-tag' into 'main'

Escape GtkBuilder XML tag in comment with backtick

Closes #5312

See merge request GNOME/gtk!5429

3 years agomacos: Provide fallback pasteboard for gtype Dnd
Arjan Molenaar [Wed, 11 Jan 2023 22:17:24 +0000 (23:17 +0100)]
macos: Provide fallback pasteboard for gtype Dnd

The Drag data should pass through the macos pasteboard system.
We need to provide some pasteboard type. Let's make it a "URL",
which is a pretty generic type anyway.

3 years agomacos: No need to drag handle events
Arjan Molenaar [Wed, 11 Jan 2023 18:01:05 +0000 (19:01 +0100)]
macos: No need to drag handle events

This is handled by the DraggingSource object.

3 years agomacos: No need to grab a seat
Arjan Molenaar [Wed, 11 Jan 2023 17:56:01 +0000 (18:56 +0100)]
macos: No need to grab a seat

The macOS DnD logic will take over anyway.

3 years agomacos: Support dragging from GdkMacosWindow
Arjan Molenaar [Mon, 9 Jan 2023 22:01:12 +0000 (23:01 +0100)]
macos: Support dragging from GdkMacosWindow

The handling is done similar to drag targets.
Note that dragging is a modal action on macos: no events
are sent to the main window. This could cause trouble when
we finish the drag, and not finish the gesture in GTK.

3 years agoEscape GtkBuilder XML tag in comment with backtick
sunce [Sun, 15 Jan 2023 06:17:07 +0000 (14:17 +0800)]
Escape GtkBuilder XML tag in comment with backtick

Escape XML tags in gi-docgen oriented comment e.g. from <child> to
`<child>`, so that they don't become HTML tag on the final webpage.
This fix includes everything from commit ff46ea64 and #5312.

Fixes #5312

3 years agoFix dx, dy position in gtk_drag_source_drag_begin
Arjan Molenaar [Sat, 14 Jan 2023 18:54:06 +0000 (19:54 +0100)]
Fix dx, dy position in gtk_drag_source_drag_begin

Coordinates are double. This change avoid an unneeded cast.

3 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Sun, 15 Jan 2023 04:12:47 +0000 (04:12 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

widgetfactory: Load textures in threads

See merge request GNOME/gtk!5428

3 years agotexture: Update docs
Matthias Clasen [Sun, 15 Jan 2023 03:48:31 +0000 (22:48 -0500)]
texture: Update docs

Document that we support TIFF as well.

3 years agowidgetfactory: Load textures in threads
Matthias Clasen [Sun, 15 Jan 2023 03:38:20 +0000 (22:38 -0500)]
widgetfactory: Load textures in threads

It is useful to show how this is done, even
though the images here are not terribly large.

3 years agoMerge branch 'nielsdg/gtkwidgetactionactivatefunc-nullable-variant' into 'main'
Matthias Clasen [Sun, 15 Jan 2023 00:46:11 +0000 (00:46 +0000)]
Merge branch 'nielsdg/gtkwidgetactionactivatefunc-nullable-variant' into 'main'

Add missing nullable to GtkWidgetActionActivateFunc

See merge request GNOME/gtk!5424

3 years agoMerge branch 'uri-launcher' into 'main'
Matthias Clasen [Sat, 14 Jan 2023 22:59:01 +0000 (22:59 +0000)]
Merge branch 'uri-launcher' into 'main'

filelauncher: Plug a memory leak

See merge request GNOME/gtk!5425

3 years agodocs: Update deprecations for gtk_show_uri
Matthias Clasen [Sat, 14 Jan 2023 19:00:56 +0000 (14:00 -0500)]
docs: Update deprecations for gtk_show_uri

We have a better replacement now.

3 years agourilauncher: Add cross-references to the docs
Matthias Clasen [Sat, 14 Jan 2023 19:00:39 +0000 (14:00 -0500)]
urilauncher: Add cross-references to the docs

3 years agoAdd GtkUriLauncher
Matthias Clasen [Sat, 14 Jan 2023 17:22:51 +0000 (12:22 -0500)]
Add GtkUriLauncher

3 years agoAdd g_openuri_portal_open_uri_async
Matthias Clasen [Sat, 14 Jan 2023 17:19:18 +0000 (12:19 -0500)]
Add g_openuri_portal_open_uri_async

This avoids a roundtrip through GFile and
thus works with random uri schemes.